package com.my.swas.sso.module.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.my.swas.sso.module.admin.entity.Role;
import com.my.swas.sso.module.admin.vo.RoleTreeVo;

import java.util.List;

/**
 * @Description:
 * @author: :MaYong
 */
public interface RoleService extends IService<Role> {


    /**
     * 组装用户多选角色数据
     * @param userId
     * @return
     */
    List<RoleTreeVo> getRoleListByUserId(Long userId);

    List<RoleTreeVo> buildRoleGrant(Long userId);

}
